-- GENERATED SPELL FOR [Solarium Priest] --


function spell0_18806(pUnit, Event) --@Arcane Torrent,Self--
pUnit:FullCastSpellOnTarget(33390,pUnit)
pUnit:RegisterEvent('Sorts_18806', 2264, 1)
end

function spell1_18806(pUnit, Event) --@Great Heal,Heal--
pUnit:FullCastSpellOnTarget(33387,pUnit)
pUnit:RegisterEvent('Sorts_18806', 2000, 1)
end

function spell2_18806(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(25054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18806', 2500, 1)
end

function Sorts_18806(pUnit, Event)
local choix_sorts_18806 = math.random(0, 2)
if choix_sorts_18806 == 0 then
pUnit:RegisterEvent('spell0_18806', 1, 1)
end
if choix_sorts_18806 == 1 then
pUnit:RegisterEvent('spell1_18806', 1, 1)
end
if choix_sorts_18806 == 2 then
pUnit:RegisterEvent('spell2_18806', 1, 1)
end
end

function mob18806_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18806', math.random(1500, 3000), 1)
end

function mob18806_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18806_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18806_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18806, 1, 'mob18806_Action')
RegisterUnitEvent(18806, 2, 'mob18806_Leave')
RegisterUnitEvent(18806, 3, 'mob18806_Kill')
RegisterUnitEvent(18806, 4, 'mob18806_Die')
